{{!
  Copyright (c) HashiCorp, Inc.
  SPDX-License-Identifier: BUSL-1.1
~}}

{{page-title "Server " this.model.name}}
<ServerSubnav @server={{this.model}} />
<section class="section is-full-width">
  {{#if (can "read agent")}}
    <AgentMonitor
      @level={{this.level}}
      @server={{this.model}}
      @onLevelChange={{action (mut this.level)}} />
  {{else}}
    <ForbiddenMessage @permission="agent:read" />
  {{/if}}
</section>
